'\" t
.\"     Title: ccninitkeystore
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\"      Date: 01/10/2014
.\"    Manual: \ \&
.\"    Source: \ \& 0.8.2
.\"  Language: English
.\"
.TH "CCNINITKEYSTORE" "1" "01/10/2014" "\ \& 0\&.8\&.2" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
ccninitkeystore \- Initialize a CCNx keystore with given parameters
.SH "SYNOPSIS"
.sp
\fBccninitkeystore\fR [\-h] [\-f] [\-u \fIusername\fR] [\-l \fIkeylength\fR] [\-v \fIvalidity\fR] [\fIdirectory\fR]
.SH "DESCRIPTION"
.sp
The \fBccninitkeystore\fR utility creates or overwrites the CCNx user keystore\&. The keystore is always written to the file \&.ccnx_keystore\&. If a directory is given the keystore will be written to the subdirectory \&.ccnx in that directory\&. Otherwise it will be written in $HOME/\&.ccnx\&. The \&.ccnx subdirectory will be created if it doesn\(cqt exist\&.
.SH "OPTIONS"
.PP
\fB\-h\fR
.RS 4
Print usage to stderr and exit\&.
.RE
.PP
\fB\-f\fR
.RS 4
Overwrite the existing keystore if one exists\&.
.RE
.PP
\fB\-u\fR \fIusername\fR
.RS 4
Username for this keystore\&. Defaults to username of effective uid\&.
.RE
.PP
\fB\-l\fR \fIkeylength\fR
.RS 4
Length of RSA key to be generated\&. Default is 1024 bits\&.
.RE
.PP
\fB\-v\fR \fIvalidity\fR
.RS 4
Nunber of days that the certificate should be valid\&. Default is 30\&.
.RE
.SH "EXIT STATUS"
.PP
\fB0\fR
.RS 4
Success
.RE
.PP
\fB1\fR
.RS 4
Failure (diagnostic error written on stderr)
.RE
.SH "SEE ALSO"
.sp
\fBccninitaeskeystore\fR(1)
.SH "AUTHOR"
.sp
Nick Briggs
